<template>
	<view>
		<!-- <free-nav-bar showBack title="公告详情"></free-nav-bar> -->
		<view class="font-12 pl-2 pt-2 text-999999">来源：{{newlist.source}}</view>
		<view class="font-12 pl-2 pt-2 text-999999">标题：{{newlist.title}}</view>
		<view class="font-12 pl-2 pt-2 text-999999">发布时间：{{newlist.releaseTime}}</view>
		<view class="pl-2 pr-2 mt-6 pb-2">
			<view class="text-center font-16 text-333333 font-weight-bold-500">{{newlist.title}}</view>
			<!-- <rich-text :nodes="newlist.content"></rich-text> -->
			<u-parse :html="newlist.content"></u-parse>
		</view>
	</view>
</template>

<script>
	import $H from '@/common/free-lib/request.js';
	import freeNavBar from "@/components/free-ui/free-nav-bar.vue"
	export default {
		components: {
			freeNavBar
		},
		data() {
			return {
                newlist:{}
			}
		},
		onLoad(options) {
			const id = options.id;
			this.NewListDetail(id)
		},
		computed: {
			richTextNodes() {
				return this.parseHTML(this.htmlContent);
			}
		},
		methods: {
			NewListDetail(id) {
				$H.get('/basisInform/platformNotice/visitor/queryById', {id: id}, {token: false}).then(res => {
					this.newlist = res.result
				}).catch(error => {
					uni.showToast({
						title: "网络错误，请稍后再试",
						icon: 'none'
					});
				});
			},
		}
	}
</script>

<style>
</style>